<?php if(!empty($inmu_resume)){
    //En este caso instacio el objeto CI para poder llamar el modelo directamente en la vista saltando el controlador
    $ci = &get_instance();
    $ci->load->model("front_m");
    ?>
<div class="span9 pagination"><?php echo $paginador; ?></div>
<?php foreach ($inmu_resume as $row){?>
<div class="span9 thumbnail adv">
    <div class="row-fluid">
        <div class="span3">
            <div id="img_inmu" class="thumbnail">
                <?php 
                $id_inmu = $row->id_inmu;
                $name_img = $ci->front_m->get_name_thumb($id_inmu);
                if(!empty($name_img)){
                    $name_pic = $name_img->name_img;
                    $source_image = base_url().'web/img/mini/';
                    
                    $image_properties = array(
                        'src' => $source_image.$name_pic ,
                        'alt' => $name_pic,
                        'style' => 'width : 120px; height: 120px;',
                        'title' => $name_pic,
                        'class' => 'img-polaroid',
                        );
                    echo img($image_properties);
                    
                }else{
                    
                    $name_pic = 'no_img.jpg';
                    $source_image = base_url().'web/img/';
                    
                    $image_properties = array(
                        'src' => $source_image.$name_pic ,
                        'alt' => $name_pic,
                        'style' => 'width : 120px; height: 120px;',
                        'title' => $name_pic,
                        'class' => 'img-polaroid',
                        );
                    echo img($image_properties);
                }
                ?>
            </div>
        </div>
        <div class="span9">
            <div id="titulo" class="span12">
                <h4><?php echo $row->titulo_inmu.' | '.$row->codigo_inmu;?></h4>
            </div>
            <div id="description" class="span11">
                <p><?php echo substr($row->desc_inmu,0, 220)?></p>
            </div>
            <p><a class="btn btn-success" href="<?php echo base_url().'front/view_adv/'.$row->id_inmu;?>">Ver más <i class="icon-eye-open"></i></a></p>
            
        </div>
        <div class="span12">
            <?php
            setlocale(LC_TIME, 'spanish');
            $date = mysql_to_unix($row->fecha_ingreso);
            $fecha_publicacion =  strftime("%A, %d de %B de %Y",$date );
            ?>
            <p>
                <i class="icon-calendar"></i> <strong>Publicado :</strong> <?php echo $fecha_publicacion; ?> 
                | <i class="icon-share"></i> 
                | <i class="icon-tags"></i> Tags : 
                <a href="#"><span class="label label-info"><?php echo $row->desc_tope ?></span></a>
                <a href="#"><span class="label label-important"><?php echo $row->desc_tinmue ?></span></a>
            </p>
        </div>
    </div>
</div>
<div class="span9"></div>
<?php }
     }else{ ?> 
<div class="alert alert-error">No hay avisos para Mostrar.</div>     
<?php } ?>
<div class="span9"><?php echo $paginador; ?></div>
